package com.example.controller;

import com.example.pojo.OaPrj;
import com.example.service.IOaPrjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/project")
@CrossOrigin
public class OaPrjController {
    @Autowired(required = false)
    IOaPrjService oaPrjService;

    @RequestMapping("/search")
    public java.util.List<OaPrj> oaPrjList(OaPrj prj){ return oaPrjService.oaPrjList(prj); }

    @RequestMapping("/insert")
    public int oaPrjInsert(OaPrj prj){ return oaPrjService.oaPrjInsert(prj); }

    @RequestMapping("/delete")
    public int oaPrjUpdate(OaPrj prj){ return oaPrjService.oaPrjUpdate(prj); }
}
